package com.tzstcl.sys.user.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.tzstcl.commons.utils.LongJsonDeserializer;
import com.tzstcl.commons.utils.LongJsonSerializer;

import java.util.List;

/**
 * 公司：天筑科技股份有限公司
 * 作者：zgq
 * 日期：2018年12月28日
 * 说明：
 */
public class WTTMenu {
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long id; //id
    private String text; //菜单显示名称
    private String icon; //菜单名称前的图标
    private String url; //菜单地址
    private String targetType; //页面打开方式 iframe-tab（默认） blank//代表打开新页面  ajax //代表ajax方式打开页面  iframe //代表单iframe页面
    private String urlType; //url类型，'abosulte' 绝对地址url    relative 相对地址url
    private List<WTTMenu> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTargetType() {
        return targetType;
    }

    public void setTargetType(String targetType) {
        this.targetType = targetType;
    }

    public String getUrlType() {
        return urlType;
    }

    public void setUrlType(String urlType) {
        this.urlType = urlType;
    }

    public List<WTTMenu> getChildren() {
        return children;
    }

    public void setChildren(List<WTTMenu> children) {
        this.children = children;
    }
}
